package com.amx.dao;

import com.amx.Pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 一只安慕嘻
 * @create 2021-08-03 21:25
 */

@Repository
public interface UserDao {

    User getUserByMessage(@Param("username") String username, @Param("password") String password);
    List<User> getAllUser(@Param("username") String username,@Param("pageStart") int pagestart,@Param("pageSize")int pageSize);
    int getUserCounts(@Param("username")String username);
    int updateState(@Param("id") Integer id,@Param("state") Boolean state);
    int addUser(User user);
    int deleteUser(int id);
    User getUpdateUser(int id);
    int editUser(User user);
}
